<template>
  <el-button @click="onClick" type="primary">发布事件</el-button>
</template>

<script setup lang="ts">
import { bus } from '@/utils/eventBus'

const onClick = () => {
  bus.emit('msg', Math.random().toString())
}
</script>

<style scoped lang="scss"></style>
